package com.guanzhi.mp.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.guanzhi.mp.po.BookPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mybatis-Plus 练习
 * <p> Package: com.guanzhi.mp.mapper </p>
 * <p> File: BookMapper.java </p>
 * <p> Description:  (数据访问层)</p>
 * <p> Date: 2024/6/15 21:41</p>
 *
 * @author 观之
 * @version 1.0 （代码版本）
 * @email <a href="mailto:guanzhi55634@aliyun.com">观之</a>（邮箱）
 * @date 2024/6/15 21:41
 * @since jdk17（jdk版本）
 */
@Mapper
public interface BookMapper extends BaseMapper<BookPo> {

    /**
     * 自定义查询
     *
     * @return 集合
     */
    List<BookPo> customQuery(@Param(Constants.WRAPPER) LambdaQueryWrapper<BookPo> lambdaQueryWrapper);
}
